﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class SYS_ElementSiftWordBLL
    {
        SYS_ElementSiftWordDAL serdal = new SYS_ElementSiftWordDAL();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(SYS_Element_Ruleword_Rel model)
        {
            return serdal.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string swID)
        {
            return serdal.Delete(swID);
        }

        /// <summary>
        /// 获取规则词信息
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public DataTable GetSysElementSiftWord(string ccid)
        {
            return serdal.GetSysElementSiftWord(ccid);
        }

        /// <summary>
        /// 修改筛除词
        /// </summary>
        public bool UpdateName(SYS_Element_Ruleword_Rel model)
        {
            return serdal.UpdateName(model);
        }
    }
}
